function  [S,n] = expandFromGivenPoint( image,x,y,sliceNumber)
global segMatrix;
global origGrayLevel;

DIFF_FACTOR = 0.1;

    %load the nifti file and extract the relevant slice
    origSlice = image(:,:,sliceNumber);

    origGrayLevel = origSlice(x,y);
    %prepare the segmentation matrix
    segMatrix = zeros(size(image));
    %create the segmentation matrix
    segmentationHelper(x,y,sliceNumber);

    S = segMatrix;
end

